<div class="refentry"><a id="glClampColor"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glClampColor — specify whether data read via <a class="citerefentry" href="glReadPixels"><span class="citerefentry"><span class="refentrytitle">glReadPixels</span></span></a> should be clamped</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table class="funcprototype-table" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <strong class="fsfunc">glClampColor</strong>(</code></td><td>GLenum <var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLenum <var class="pdparam">clamp</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>target</code></em></span></dt><dd><p>
                    Target for color clamping. <em class="parameter"><code>target</code></em> must be <code class="constant">GL_CLAMP_READ_COLOR</code>.
                </p></dd><dt><span class="term"><em class="parameter"><code>clamp</code></em></span></dt><dd><p>
                    Specifies whether to apply color clamping. <em class="parameter"><code>clamp</code></em> must be <code class="constant">GL_TRUE</code> or <code class="constant">GL_FALSE</code>.
                </p></dd></dl></div></div><div class="refsect1"><a id="description"></a><h2>Description</h2><p>
            <code class="function">glClampColor</code> controls color clamping that is performed during <a class="citerefentry" href="glReadPixels"><span class="citerefentry"><span class="refentrytitle">glReadPixels</span></span></a>.
            <em class="parameter"><code>target</code></em> must be <code class="constant">GL_CLAMP_READ_COLOR</code>. If <em class="parameter"><code>clamp</code></em> is <code class="constant">GL_TRUE</code>,
            read color clamping is enabled; if <em class="parameter"><code>clamp</code></em> is <code class="constant">GL_FALSE</code>, read color clamping is disabled. If
            <em class="parameter"><code>clamp</code></em> is <code class="constant">GL_FIXED_ONLY</code>, read color clamping is enabled only if the selected read buffer has
            fixed point components and disabled otherwise.
        </p></div><div class="refsect1"><a id="errors"></a><h2>Errors</h2><p>
            <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>target</code></em> is not
            <code class="constant">GL_CLAMP_READ_COLOR</code>.
        </p><p>
            <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>clamp</code></em> is not <code class="constant">GL_TRUE</code> or <code class="constant">GL_FALSE</code>.
        </p></div><div class="refsect1"><a id="associatedgets"></a><h2>Associated Gets</h2><p>
            <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_CLAMP_READ_COLOR</code>.
        </p></div><div class="refsect1"><div id="Copyright"><h2>Copyright</h2><p>
            Copyright © 2010 Khronos Group.
            This material may be distributed subject to the terms and conditions set forth in
            the Open Publication License, v 1.0, 8 June 1999.
            <a class="ulink" href="https://opencontent.org/openpub/" target="_top">https://opencontent.org/openpub/</a>.
        </p></div></div></div>
